package top.dancun.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author dancun
 * @email message@dancun.top
 * @date 2022-09-05 22:15:48
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 工号/学号
	 */
	@TableId(type=IdType.INPUT)
	private String uid;
	/**
	 * 密码
	 */

	private String pwd;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 用户创建时间
	 */
	private Date createTime;

	@TableField(exist = false)
	private List<RoleEntity> roles = new ArrayList<>();

}
